<?php
// @formatter:off
/**
 * @file WCComicsHolder.php
 * @author Alejandro Dario Simi
 * @date $Date: 2013-05-19 06:39:24 +0000 (Sun, 19 May 2013) $
 *
 * $Id: WCComicsHolder.php 65 2013-05-19 06:39:24Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/tags/wcomix-1.0.0.2/includes/holders/WCComicsHolder.php $
 */
// @formatter:on

require_once "{$wcPaths["includes-directory"]}/representations/WCComic.php";

/**
 * @class WCComicsHolder
 * This class is a holder for representations of table '%comics', in other
 * words, a holder for WCComic objects.
 */
class WCComicsHolder extends WCGHolder {
	/**
	 * @var WCComicsHolder Pointer to the singleton instance.
	 */
	protected static $_Instance;
	/**
	 * @var string Class name of the objects to be held.
	 */
	protected $_PropertiesItemClass = "WCComic";
	/**
	 * @var string This is the prefix of every column on the table
	 * '%comics'.
	 */
	protected $_PropertiesPrefix = "cmc_";
	/**
	 * @var string This is the name of the table represented by WCComic
	 * objects. In this case, '%comics'.
	 */
	protected $_PropertiesTable = "comics";
	//
	// Public class methods.
	/**
	 * This class method allows to get the sole instance of this holder.
	 *
	 * @return WCComicsHolder Returns the singleton instance of this
	 * class.
	 */
	public static function Instance() {
		//
		// Checking if there's no instance yet.
		if(!isset(self::$_Instance)) {
			$c = __CLASS__;
			//
			// Creating the sole instance.
			self::$_Instance = new $c();
		}
		//
		// Returning the class instance.
		return self::$_Instance;
	}
}
?>